package com.onec.service.route.dao;


import com.onec.service.api.dao.BaseRepository;
import com.onec.service.route.entity.TradeRuleInfo;
import org.springframework.data.repository.RepositoryDefinition;

import java.util.List;

/**
 * @author ONEC
 */
@RepositoryDefinition(domainClass = TradeRuleInfo.class, idClass = Long.class)
public interface TradeRuleRepository extends BaseRepository<TradeRuleInfo, Long> {

    /**
     * @param tradeConfigId tradeConfigId
     * @return TradeRuleInfo
     */
    List<TradeRuleInfo> findAllByTradeConfigId(long tradeConfigId);
}
